import {LoginEvent} from "../modules/login/LoginEvent.ts";
import {LoginCommand} from "../modules/login/cmds/LoginCommand.ts";
import {GetUserInfo1Command} from "../modules/login/cmds/GetUserInfo1Command.ts";
import {GetUserInfo2Command} from "../modules/login/cmds/GetUserInfo2Command.ts";
import {LoginCompleteCommand} from "../modules/login/cmds/LoginCompleteCommand.ts";
import {VCairnConnector} from "v-cairn";

export class AppConnector extends VCairnConnector {
    constructor() {
        super();
        this.initCommands();
    }

    initCommands() {
        this.addCommand(LoginEvent.LOGIN, LoginCommand);
        this.addCommand(LoginEvent.GET_USER_INFO_1, GetUserInfo1Command);
        this.addCommand(LoginEvent.GET_USER_INFO_2, GetUserInfo2Command);
        this.addCommand(LoginEvent.LOGIN_COMPLETE, LoginCompleteCommand);
    }
}